# -*- coding: utf-8 -*-

from odoo import models, fields, api


class weixinScene(models.Model):
    _name = 'weixin.scene'

    name = fields.Char(u'场景')

    scene_type = fields.Selection([
        ('product', u'产品'),
        ('partner', u'合作伙伴'),
        ('partnerproduct', u'店铺产品')
    ], u'场景类型')

    product_tmpl_id = fields.Many2one('product.template', u'产品模板')

    partner_id = fields.Many2one('res.partner', u'合作伙伴')

    path = fields.Char(u'页面路径')

    barcode_img_url = fields.Char(u'二维码路径')

    barcode_img = fields.Binary(u'二维码')
